package edu.uni.dormitory.globalbean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 前端需要的学生住宿信息类
 */
public class StudentBedVo implements Serializable {
    private static final long serialVersionUID = -2717875053900055423L;
    //数据表唯一ID
    private Long id;
    //学生基本信息
    private Long studentId;

    private Long Userid;//用户id
    private String userName; //用户名、学生名

    private String stuNo;// 学号
    private Integer userSex;//用户性别，0：女 1:男 2：不详 默认2
    private String Sex;//中文性别



    private Long areaId;//所属宿舍区
    private String areaName;//宿舍区名称

    private Long liveRoomId;//所属宿舍房间
    private Integer room;//宿舍房间号

    //所在宿舍床位ID
    private Long liveBedId;
    //床位编号
    private String number;

    //离开时间
    private Date leaveDate;
    //入住时间
    private Date liveDate;
    //宿管中心是否同意 0：待审 1：同意 -1：不同意
    private Byte status;
    private String state;//中文状态

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public Long getUserid() {
        return Userid;
    }

    public void setUserid(Long userid) {
        Userid = userid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public Integer getUserSex() {
        return userSex;
    }

    public void setUserSex(Integer userSex) {
        this.userSex = userSex;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public Long getLiveRoomId() {
        return liveRoomId;
    }

    public void setLiveRoomId(Long liveRoomId) {
        this.liveRoomId = liveRoomId;
    }

    public Integer getRoom() {
        return room;
    }

    public void setRoom(Integer room) {
        this.room = room;
    }

    public Long getLiveBedId() {
        return liveBedId;
    }

    public void setLiveBedId(Long liveBedId) {
        this.liveBedId = liveBedId;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getLeaveDate() {
        return leaveDate;
    }

    public void setLeaveDate(Date leaveDate) {
        this.leaveDate = leaveDate;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getLiveDate() {
        return liveDate;
    }

    public void setLiveDate(Date liveDate) {
        this.liveDate = liveDate;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public String getSex() {
        return Sex;
    }

    public void setSex(String sex) {
        Sex = sex;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
